package ooday02.person;

public class TestExtand {
    public static void main(String[] args) {
        //在子类的构造方法中若没有调用超类的构造方法,则默认super()调用超类的无参构造方法

        Doctor dc=new Doctor("黄文",43,"南宁医科大","特级牙科");
        dc.eat(3);
        dc.eat();
        dc.sayHi(6);
        dc.cut();

        Teacher tea=new Teacher("吴磊",33,"北京朝阳",5000);
        tea.sayHi();
        Student stu=new Student("黄玉山",44,"黄土高坡","Jsd2302","45552");
        stu.sayHi(5);
        Hushi hu=new Hushi();



    }
}
